<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
</html>
<script>
    function urlzhuan(url) {
		   var duixiang = {};
		   var arr = url.split("?");
           
		   if (arr.length <= 1) {
		      return duixiang;
		   }
		   arr = arr[1].split("&");
		   for(var i = 0, l = arr.length; i < l; i++) {
		      var a = arr[i].split("=");
            //   console.log(a[1]);
            duixiang[a[0]] = a[1];
		   }
		   return duixiang;
		}
 
        var url='http://study.qfedu.com/detail?lineId=59&stageId=990'
		var ps = urlzhuan(url);
        console.log(ps);


</script>